package com.zack.shop.mvp.http.api.service;

import com.zack.shop.mvp.http.entity.BaseResponse;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @Author 张迁-zhangqian
 * @Data 2018/6/15 下午1:56
 * @Package com.zack.shop.mvp.http.api.service
 **/
public interface OrderService {

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/order/my_order")
    Observable<BaseResponse> myOrder(
            @Body RequestBody info

    );

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/order/sub_order")
    Observable<BaseResponse> subOrder(
            @Body RequestBody info
    );

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/order/handle_order")
    Observable<BaseResponse> handleOrder(
            @Body RequestBody info
    );


    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/order/my_proxy_order")
    Observable<BaseResponse> myProxyOrder(
            @Body RequestBody info
    );

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("/order/handle_proxy_order")
    Observable<BaseResponse> handleProxyOrder(
            @Body RequestBody info
    );

}
